package com.wxy.selectUser;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.wxy.entity.*;

public class SelectUser {

    //selectUser.selectUser(userId)通过轮子按userid查询user
    //通过userId拿出user信息轮子
    public static QueryWrapper<Userinfor> userinforSelectUser(String userId){
        System.out.println(userId);
        QueryWrapper<Userinfor> qw = new QueryWrapper<>();
        qw.eq("userId", Integer.valueOf(userId));
        return qw;
    }

    public static QueryWrapper<Users> usersSelectUser(String userId){
        QueryWrapper<Users> qw = new QueryWrapper<>();
        qw.eq("userId", Integer.valueOf(userId));
        return qw;
    }

    public static QueryWrapper<Saleacdata> saleAcDataSelectUser(String userId){
        QueryWrapper<Saleacdata> qw = new QueryWrapper<>();
        qw.eq("userId", Integer.valueOf(userId));
        return qw;
    }

    public static QueryWrapper<Saledata> saleDataSelectUser(String userId){
        QueryWrapper<Saledata> qw = new QueryWrapper<>();
        qw.eq("userId", Integer.valueOf(userId));
        return qw;
    }

    public static QueryWrapper<Salemonthdata> saleMonthDataSelectUser(String userId){
        QueryWrapper<Salemonthdata> qw = new QueryWrapper<>();
        qw.eq("userId", Integer.valueOf(userId));
        return qw;
    }

    public static QueryWrapper<Saledetaildata> saledetailDataSelectUser(String userId){
        QueryWrapper<Saledetaildata> qw = new QueryWrapper<>();
        qw.eq("userId", Integer.valueOf(userId));
        return qw;
    }
    public static QueryWrapper<Saledata> saleDayDataSelectUser(String userId){
        QueryWrapper<Saledata> qw = new QueryWrapper<>();
        qw.eq("userId", Integer.valueOf(userId));
        return qw;
    }

    public static QueryWrapper<Saleweekdata> saleWeekDataSelectUser(String userId){
        QueryWrapper<Saleweekdata> qw = new QueryWrapper<>();
        qw.eq("userId", Integer.valueOf(userId));
        return qw;
    }

    public static QueryWrapper<Saleyeardata> saleYearDataSelectUser(String userId){
        QueryWrapper<Saleyeardata> qw = new QueryWrapper<>();
        qw.eq("userId", Integer.valueOf(userId));
        return qw;
    }

}
